<ion-view title="线路列表">
  <ion-nav-buttons side="left">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="menu">返回</button>
  </ion-nav-buttons>

  <ion-nav-buttons side="right">
    <button class="button button-icon icon ion-ios-search" ui-sref="searchXl"></button>
  </ion-nav-buttons>

  <ion-content>

    <ion-refresher pulling-text="下拉加载..." on-refresh="doRefresh()"></ion-refresher>

    <div ng-if="showloading" style="margin-top:60px; text-align: center">
      <ion-spinner icon="ios" style="height: 60px; width: 60px;"></ion-spinner>
    </div>
    <ion-list ng-if="showloading == false">
      <h5 ng-if="xlData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
      <ion-item collection-repeat="data in xlData" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
        <div class="ydList card list-inset" style="margin-bottom: 5px;">
          <div class="xuhao">

          </div>
          <div>
            <label class="item item-input">
              <i class="input-label">线路名称:</i>
              <p>{{data.xlmc}}</p>
            </label>
            <label class="item item-input">
              <i class="input-label">物流公司:</i>
              <p>{{data.wlgsmc}}</p>
            </label>
            <label class="item item-input">
              <i class="input-label">手机号码:</i>
              <p>{{data.sjhm}}</p>
            </label>
            <label class="item item-input">
              <i class="input-label">联系电话:</i>
              <p>{{data.plane}}</p>
            </label>
          </div>
        </div>

      </ion-item>
    </ion-list>

    <ion-infinite-scroll on-infinite="loadMore()" distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>

  </ion-content>
</ion-view>
